package com.helin.helinhealth.common;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 基础服务实现类
 */
public abstract class BaseServiceImpl {
    protected final Logger log = LoggerFactory.getLogger(this.getClass());
    
    /**
     * 通过ID获取实体
     * 
     * @param id 实体ID
     * @return 实体对象
     */
    protected <T> T getById(Long id) {
        throw new UnsupportedOperationException("子类必须实现此方法");
    }
} 